package xingzhuang;
import java.math.*;
class Rectangle {
	private int width;
	private int length;
	
	public Rectangle(int width,int length)
	{
		this.width=width;
		this.length=length;
	}
	public int getPerimeter()
	{
		int Perimeter=2*width+2*length;
		return Perimeter;
	}
	public int getArea()
	{
		int Area=width*length;
		return Area;
	}

	public String toString()
	{
		return "[Rectangle [width="+width+", length="+length+"]";
	}
}
class Circle
{
	private int radius;
	public Circle(int radius)
	{
		this.radius=radius;
	}
	public int getPerimeter()
	{
		int Perimeter=2*(int)Math.PI*radius;
		return Perimeter;
	}
	public int getArea()
	{
		int Area=(int)Math.PI*radius*radius;
		return Area;
	}
	public String toString()
	{
		return "[Circle [radius="+radius+"]";
	}
}

